package com.my.alibaba.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@RequestMapping("testc")
@Slf4j
@RefreshScope
public class TestController {
    @Value("${nacos.config-val:nacos.config-val未取到值}")
    private String nacosconfig;

    @GetMapping("test")
    public String test(){
        return nacosconfig;
    }

}
